# headers配置
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
}

# URL一些链接地址
HUAWEI_URL_PREFIX = {
    'cn': 'https://developer.huawei.com/consumer/cn/doc',
    'en': 'https://developer.huawei.com/consumer/en/doc'
}
DOCUMENT_PORTAL = 'https://svc-drcn.developer.huawei.com/community/servlet/consumer/cn/documentPortal'
GET_CATALOG_TREE = DOCUMENT_PORTAL + '/getCatalogTree'
GET_DOCUMENT_BY_ID = DOCUMENT_PORTAL + '/getDocumentById'
HARMONYOS_SAMPLES_GITEE = 'https://gitee.com/organizations/harmonyos_samples/projects'
HARMONYOS_SAMPLES_DEVELOPER = ''
# 获取codelab卡片列表
GET_APPROVED_CARD_LIST_BY_CATEGORY = 'https://svc-drcn.developer.huawei.com/consumer/partnerCodelabsService/v1/developer/codelabs/getApprovedCardListByCategory'
# 查询卡片详细信息
QUERY_CARD_INFO = "https://svc-drcn.developer.huawei.com/consumer/partnerCodelabsService/v1/developer/codelabs/queryCardInfo"

# data常量
CATALOG_NAME_GUIDES = 'harmonyos-guides'
OBJECT_ID_GUIDES = 'application-dev-guide'

CATALOG_NAME_API = 'harmonyos-references'
OBJECT_ID_API = 'development-intro-api'

CATALOG_NAME_BEST_PRACTICES = 'best-practices'
OBJECT_ID_BEST_PRACTICES = 'bpta-harmonyos-features'

CATALOG_NAME_FAQ = 'harmonyos-faqs'
OBJECT_ID_FAQ = 'faqs-ux-design'

CATALOG_NAME_ARCHITECTURE = 'architecture-guides'
OBJECT_ID_ARCHITECTURE = 'practice-auto-app-architecture-v1-0000001903742656'

CATALOG_NAME_OVERVIEW = 'harmonyos-releases'
OBJECT_ID_OVERVIEW = 'overview-allversion'

# 元服务
CATALOG_NAME_ATOMIC_GUIDES = 'atomic-guides'
OBJECT_ID_ATOMIC_GUIDES = 'atomic-development-journey'

CATALOG_NAME_ATOMIC_API = 'atomic-references'
OBJECT_ID_ATOMIC_API = 'atomic-apis-intro'

CATALOG_NAME_ATOMIC_FAQ = 'atomic-faqs'
OBJECT_ID_ATOMIC_FAQ = 'faqs-operational'

CATALOG_NAME_ATOMIC_ASCF = 'atomic-ascf'
OBJECT_ID_ATOMIC_ASCF = 'ascf-overview'

CATALOG_NAME_ATOMIC_OVERVIEW = 'atomic-releases'
OBJECT_ID_ATOMIC_OVERVIEW = 'atomic-releasenotes'